package com.apes.framework.plugin.esb.parser.element;

import com.apes.framework.plugin.esb.processor.jpa.FindAllProcessor;
import org.springframework.stereotype.Component;

/**
 * 功能：FindAll解析器
 *
 * @author xul
 * @create 2018-06-26 11:29
 */
@Component
public class FindAllElementParser extends AbstractProcessorParser{
    /**
     * 可解析的元素列表
     **/
    private final String[] elementNames = {"findAll"};

    /**
     * 功能：可解析的元素列表
     */
    @Override
    public String[] getNames() {
        return elementNames;
    }

    @Override
    <T extends Class> T getChainProcessorClass() {
        return (T) FindAllProcessor.class;
    }
}
